#ifndef LOGINVIEW_H
#define LOGINVIEW_H

#include <QObject>
#include <QQuickView>
#include <QQmlContext>

#include <QQuickItem>
#include "ddframelesshelper.h"
#include<QtNetwork/QNetworkReply>

class LoginView : public QQuickView
{
    Q_OBJECT
public:
    explicit LoginView(QQuickView *parent = nullptr);

signals:
    void loginSignal(QString data);
public slots:
    void replyfinished(QNetworkReply*);
    void setSourceAndRegsiterObj(const QUrl &url, bool regsiter=true);
    void showTrayIcon();
protected:
   //void mouseDoubleClickEvent(QMouseEvent *event);
private slots:
    void slotRecevQmlReq(QVariant var, QString cmd);
    void loginEventQml(QString username,QString password);
private:
    QObject *m_Obj{nullptr};
//    YouZanObject yZObj;
//    BDTableModel mTableModel;
//    BDTableModel mMyModel;
      bool isMax{false};
      DDFramelessHelper *mHelper{nullptr};
private:
    void slotShowMaxAndNormal(bool showMax);
};

#endif // LOGINVIEW_H
